import request from '@/utils/request'

// 查询购买信息列表
export function listBuyInfo(query) {
  return request({
    url: '/work/buyinfo/list',
    method: 'get',
    params: query
  })
}

// 查询购买信息详细
export function getBuyInfo(buyID) {
  return request({
    url: '/work/buyinfo/' + buyID,
    method: 'get'
  })
}

// 新增购买信息信息
export function addBuyInfo(data) {
  return request({
    url: '/work/buyinfo/add',
    method: 'post',
    data: data
  })
}

// 修改购买信息
export function updateBuyInfo(data) {
  return request({
    url: '/work/buyinfo/edit',
    method: 'put',
    data: data
  })
}

// 删除购买信息
export function delBuyInfo(buyID) {
  return request({
    url: '/work/buyinfo/' + buyID,
    method: 'delete'
  })
}
